package element.base;

public class BaseNode {
    public boolean isWord(WordType wordType) {
        if (this instanceof Word) {
            if (((Word) this).getType().equals(wordType)) {
                return true;
            }
        }

        return false;
    }

    public boolean isSynt(Class nonterType) {
        return this.getClass().equals(nonterType);
    }

    public String toTreeString(int level) {
        return null;
    }
}
